package com.jajahome.util.convertutils;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

public class ErrorUtil {
    public static void showMessage(Context context,Throwable e){
        if (e instanceof DataResultException){
            DataResultException resultException = (DataResultException) e;
            Toast.makeText(context,resultException.getMsg(),Toast.LENGTH_LONG).show();
        }
    }
}
